package com.hdw.cms.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "t_attachment")
public class Attachment {
	private int id;
	/**
	 * 附件上传之后的名称
	 */
	private String unUseFile;
	public String getUnUseFile() {
		return unUseFile;
	}

	public void setUnUseFile(String unUseFile) {
		this.unUseFile = unUseFile;
	}


	private String newName;
	/**
	 * 附件的原始名称
	 */
	private String proPar;

	public Integer getProPos() {
		return proPos;
	}

	public void setProPos(Integer proPos) {
		this.proPos = proPos;
	}

	public Integer getVdoPos() {
		return vdoPos;
	}

	public void setVdoPos(Integer vdoPos) {
		this.vdoPos = vdoPos;
	}


	private Integer proPos;
	private Integer vdoPos;
	public String getProPar() {
		return proPar;
	}

	public void setProPar(String proPar) {
		this.proPar = proPar;
	}

	private String oldName;

	private Integer videoId;
	
	private int isVideo;
	
	
	private int isVideoImg;

	Attachment videoImg;
	
	
	
	@Transient
	public Attachment getVideoImg() {
		return videoImg;
	}

	public void setVideoImg(Attachment videoImg) {
		this.videoImg = videoImg;
	}

	public int getIsVideoImg() {
		return isVideoImg;
	}

	public void setIsVideoImg(int isVideoImg) {
		this.isVideoImg = isVideoImg;
	}
	public int getIsVideo() {
		return isVideo;
	}

	public void setIsVideo(int isVideo) {
		this.isVideo = isVideo;
	}

	public Integer getVideoId() {
		return videoId;
	}

	public void setVideoId(Integer videoId) {
		this.videoId = videoId;
	}

	private Integer proTypeId;

	public Integer getProTypeId() {
		return proTypeId;
	}

	public void setProTypeId(Integer proTypeId) {
		this.proTypeId = proTypeId;
	}

	private String type;
	private String suffix;
	private long size;
	private int isIndexPic;
	private int isProImg;

	public String getattName() {
		return attName;
	}

	public void setattName(String attName) {
		this.attName = attName;
	}

	private String attName;
	private String picMessage;

	public String getPicMessage() {
		return picMessage;
	}

	public void setPicMessage(String picMessage) {
		this.picMessage = picMessage;
	}

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "new_name")
	public String getNewName() {
		return newName;
	}

	public void setNewName(String newName) {
		this.newName = newName;
	}

	@Column(name = "old_name")
	public String getOldName() {
		return oldName;
	}

	public void setOldName(String oldName) {
		this.oldName = oldName;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSuffix() {
		return suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	@Column(name = "is_index_pic")
	public int getIsIndexPic() {
		return isIndexPic;
	}

	public void setIsIndexPic(int isIndexPic) {
		this.isIndexPic = isIndexPic;
	}

	@Column(name = "is_proImg")
	public int getisProImg() {
		return isProImg;
	}

	public void setisProImg(int isProImg) {
		this.isProImg = isProImg;
	}


	public Attachment() {
	}

	public Attachment(int id, String newName, String oldName, String type,
			String suffix, long size, int isProImg, String attName) {
		super();
		this.id = id;
		this.newName = newName;
		this.oldName = oldName;
		this.type = type;
		this.suffix = suffix;
		this.size = size;
		this.isProImg = isProImg;
		this.attName = attName;
	}

	public Attachment(int id, String newName, String oldName, String type,
			String suffix, long size, int isIndexPic, int isProImg) {
		super();
		this.id = id;
		this.newName = newName;
		this.oldName = oldName;
		this.type = type;
		this.suffix = suffix;
		this.size = size;
		this.isIndexPic = isIndexPic;
		this.isProImg = isProImg;
	}
}
